from django import forms
from django.core.exceptions import ObjectDoesNotExist
from django.core.exceptions import ValidationError, NON_FIELD_ERRORS
from django import forms
from l2ldjango.apps.firm.models import *
from l2ldjango.apps.usermanagement.models import *
from django.contrib.localflavor.us.us_states import STATE_CHOICES

class SearchForm(forms.Form):
	name = forms.CharField(required=False)
	city = forms.CharField(required=False)
	the_county = forms.ModelChoiceField(queryset=County.objects.all(),label='County',required=False)
	choices = [('','----')] + [x for x in STATE_CHOICES]
	the_state = forms.ChoiceField(choices=choices,label='State',required=False)

class FirmForm(forms.ModelForm):
	class Meta:
		model=Firm
		exclude=('verification_code','created_by',)




